package com.fangsiqi.maven.base;

public record Person(String name,Integer age) {
    public static void main(String[] args) {
        Person person = new Person("张三", 18);
        System.out.println(person);
        System.out.println(person.name());
    }
}
